import request from "@/utils/request";

// 获取编号
export function getNo() {
  return request({
    url: "/erp/common/getNo",
    method: "get",
  });
}

// 查询项目岗位
export function selectedProjectJob(level) {
  return request({
    url: "/cld/common/selectedProjectJob/" + level,
    method: "get",
  });
}

// 查询项目-小组-人员
export function selectedProjectGroupStaff() {
  return request({
    url: "/cld/common/selectedProjectGroupStaff",
    method: "get",
  });
}

// 分组查询项目岗位及在岗员工
export function selectJobStaffByProjectId(projectId) {
  return request({
    url: "/cld/common/selectJobStaffByProjectId/" + projectId,
    method: "get",
  });
}

// 分组查询项目小组及在岗员工
export function selectGroupStaffByProjectId(projectId) {
  return request({
    url: "/cld/common/selectGroupStaffByProjectId/" + projectId,
    method: "get",
  });
}

// 获取今年所有节假日
export function selectHolidays(query) {
  return request({
    url: "/cld/common/selectHolidays",
    method: "get",
    params: query,
  });
}
